function saveModify(id, form){
	  	var url = 'index.php?module=conversations&type=user&func=modify_post&pageName=module';
		var pars = Form.serialize(form);
		var myAjax = new Ajax.Updater(id, url, {	method: 'post',	parameters: pars});
}

function saveModifyTag(id){
	  	var url = 'index.php?module=conversations&type=user&func=modify_tag&pageName=module';
		var pars = Form.serialize('modify-tag');
		var myAjax = new Ajax.Updater(id, url, {	method: 'post',	parameters: pars});
}

function setSub(jtagid){
	  	var url = 'index.php?module=conversations&type=user&func=set_sub&pageName=module';
	  	var pars = 'tagid='+jtagid;
		var myAjax = new Ajax.Updater(($('sub')), url, {	method: 'post',	parameters: pars});
}
function addPost(){
  	var url = 'index.php?module=conversations&type=user&func=preview_post_ajax&pageName=module';
	var pars = 'post='+escape($F('post'));
	var target = 'preview-post';
	var myAjax = new Ajax.Updater(target, url, {	method: 'post',	parameters: pars});
}
function getFocus(fieldid){
    var toFocus = document.getElementById(fieldid);
    toFocus.focus();
}
function getUserInfo(nuid, nrep){
	  	var url = 'index.php?module=conversations&type=user&func=userinfo&pageName=module';
	  	var pars = 'uid='+nuid;
		var myAjax = new Ajax.Updater(nrep, url, {	method: 'get',	parameters: pars});
}

function loadTagModForm(mtagid, mtag, mtrep){
	  	var url = 'index.php?module=conversations&type=user&func=tform&pageName=module&tag='+mtag;
	  	var pars = 'tagid='+mtagid;
		var myAjax = new Ajax.Updater(mtrep, url, {	method: 'get',	parameters: pars});
}
function loadPostModForm(ppostid, prep){
	  	var url = 'index.php?module=conversations&type=user&func=mform&pageName=module';
	  	var pars = 'postid='+ppostid;
		var myAjax = new Ajax.Updater(prep, url, {	method: 'get',	parameters: pars});
}
function loadPostQuoteForm(qpostid, qtagset, qtagidset, qname, qrep){
	  	var url = 'index.php?module=conversations&type=user&func=qform&pageName=module&tagset='+qtagset+'&tagidset='+qtagidset+'&name='+qname;
	  	var pars = 'postid='+qpostid;
		var myAjax = new Ajax.Updater(qrep, url, {	method: 'get',	parameters: pars});
}
function loadPostTagForm(ptpostid, pttagidset, pttagset, ptuid, ptrep){
	  	var url = 'index.php?module=conversations&type=user&func=ptform&pageName=module&tagidset='+pttagidset+'&uid='+ptuid+'&tagset='+pttagset;
	  	var pars = 'postid='+ptpostid;
		var myAjax = new Ajax.Updater(ptrep, url, {	method: 'get',	parameters: pars});
}
function loadPostKarmaUp(kupostid, kuuid, kutagidset, kutrep){
	  	var url = 'index.php?module=conversations&type=user&func=post_karma&pageName=module&up=true&tagidset='+kutagidset+'&user='+kuuid;
	  	var pars = 'postid='+kupostid;
		var myAjax = new Ajax.Updater(kutrep, url, {	method: 'get',	parameters: pars});
}
function loadPostKarmaDown(kdpostid, kduid, kdtagidset, kdtrep){
	  	var url = 'index.php?module=conversations&type=user&func=post_karma&pageName=module&down=true&tagidset='+kdtagidset+'&user='+kduid;
	  	var pars = 'postid='+kdpostid;
		var myAjax = new Ajax.Updater(kdtrep, url, {	method: 'get',	parameters: pars});
}
function loadTagKarmaUp(tutagidset, tutrep){
	  	var url = 'index.php?module=conversations&type=user&func=tag_karma&pageName=module&up=true';
	  	var pars = 'tagid='+tutagidset;
		var myAjax = new Ajax.Updater(tutrep, url, {	method: 'get',	parameters: pars});
}
function loadTagKarmaDown(tdtagidset, tdtrep){
	  	var url = 'index.php?module=conversations&type=user&func=tag_karma&pageName=module&down=true';
	  	var pars = 'tagid='+tdtagidset;
		var myAjax = new Ajax.Updater(tdtrep, url, {	method: 'get',	parameters: pars});
}